package com.example.demo6.SQLite;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "lostGoods")
public class LostGoods {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "goodsId")
    public int goodsId;

    @ColumnInfo(name = "LostGoods")
    public String lostGoods;

    @ColumnInfo(name = "Loser")
    public String loser;

    @ColumnInfo(name = "LostPlace")
    public String lostPlace;

    @ColumnInfo(name = "LostTime")
    public String lostTime;

    @ColumnInfo(name = "LoserPhone")
    public String loserPhone;

    @ColumnInfo(name = "LostDetail")
    public String lostDetail;

//    @ColumnInfo(name = "LostPhoto")
//    private byte[] lostPhoto;


    public LostGoods(String lostGoods, String loser, String lostPlace, String lostTime, String loserPhone, String lostDetail) {
//        this.goodsId = goodsId;
        this.lostGoods = lostGoods;
        this.loser = loser;
        this.lostPlace = lostPlace;
        this.lostTime = lostTime;
        this.loserPhone = loserPhone;
        this.lostDetail = lostDetail;
//        this.lostPhoto = lostPhoto;
    }



    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getLostGoods() {
        return lostGoods;
    }

    public void setLostGoods(String lostGoods) {
        this.lostGoods = lostGoods;
    }

    public String getLoser() {
        return loser;
    }

    public void setLoser(String loser) {
        this.loser = loser;
    }

    public String getLostPlace() {
        return lostPlace;
    }

    public void setLostPlace(String lostPlace) {
        this.lostPlace = lostPlace;
    }

    public String getLostTime() {
        return lostTime;
    }

    public void setLostTime(String lostTime) {
        this.lostTime = lostTime;
    }

    public String getLoserPhone() {
        return loserPhone;
    }

    public void setLoserPhone(String loserPhone) {
        this.loserPhone = loserPhone;
    }

    public String getLostDetail() {
        return lostDetail;
    }

    public void setLostDetail(String lostDetail) {
        this.lostDetail = lostDetail;
    }

//    public byte[] getLostPhoto() {
//        return lostPhoto;
//    }
//
//    public void setLostPhoto(byte[] lostPhoto) {
//        this.lostPhoto = lostPhoto;
//    }
}
